package com.alan.designMode.dynamicproxy;

import com.alan.designMode.dynamicproxy.Subject;

/**
 * 真实主题类
 *  RealSubject是一个正常的业务实现类，代理模式的核心就在代理类上。
 * Created by Alan on 17-8-29
 */
public class RealSubject implements Subject {

    //实现方法
    @Override
    public void doSomething(String msg) {
        //业务逻辑处理
        System.out.println("do some thing " + msg);
    }

}
